/**
 * lilang
 * ProcessDefinitionService.java
 * 2013-10-20下午4:54:33
 */
package com.cq.oa.service.work;

import java.util.List;

import oa.base.service.BaseService;

import com.cq.oa.dao.wfc.ProcessJspDao;
import com.cq.oa.dao.wfc.ProcessTypeDao;
import com.cq.oa.domain.dto.WorkDto;
import com.cq.oa.domain.wfc.ActivityParticipation;
import com.cq.oa.domain.wfc.ProcessDefinition;


/**
 * @author lilang
 *
 */
public interface ProcessDefinitionService extends BaseService<ProcessDefinition>{
	
	
	public ProcessJspDao getProcessJspDao();
	/**
	 * 流程类型
	 * @return
	 * lilang 
	 * 2013-10-31下午1:06:05
	 */
	public ProcessTypeDao getProcessTypeDao();

	/**
	 * 获取流程定义数据
	 * @param sid
	 * @return
	 * lilang 
	 * 2013-10-20下午5:00:27
	 */
	public WorkDto findProcessDefinitionById(Long sid);
	
	/**
	 * 保存 流程定义
	 * @param dto
	 * lilang 
	 * 2013-10-20下午6:20:37
	 */
	public void doProcessDefinition(ProcessDefinition definition);
	
	/**
	 * 复制流程定义
	 * @param sid
	 * @return
	 * lilang 
	 * 2013-10-20下午6:52:53
	 */
	public Long doCopyProcessDefinition(Long sid,Long orgId);
	
	/**
	 * 保存 流程定义
	 * @param dto
	 * lilang 
	 * 2013-10-20下午6:20:37
	 */
	public void doActivityDefinition(WorkDto dto);
	
	
	public List<ActivityParticipation> findActivityPartion(Long activityId);
	
}
